package com.xxxx.server;
import java.util.Enumeration;
import java.util.Properties;
public class tt {

 public static void main(String[] args) {
    Properties p = new Properties();
    p.setProperty("userame", "tom");
    Enumeration names = p.propertyNames();
    while (names.hasMoreElements()) {
    String key = (String) names.nextElement();
    String value = p.getProperty(key);
    System.out.println(key + " = " + value);
        }
    }
}
